package com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.list;

import com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.factory.HtmlFactory;
import com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.factory.TrayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.list
 * @ClassName ListService
 * @Description TODO
 * @Date 2024/5/11 16:52
 * @Version 1.0
 */
@Service
@Slf4j
public class ListHtmlFactory implements HtmlFactory {

    @Resource(name = "listTrayServiceImpl")
    private TrayService trayService;

    @Override
    public TrayService createTray() {
        return trayService;
    }

}
